<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/public/header.jsp"%>
<%
    String gd_description_id = request.getParameter("gd_description_id") == null ? "" : request.getParameter("gd_description_id");
%>
<html>
	<head>
		<title>现场交底打印预览</title>
		<style>
			.td1{
				padding-top:10px;
				padding-bottom:5px;
				font-size: 12px;
				text-align:center;
				width:25%;
			}
			.datagrid-cell {
			  font-size: 18px;
			}
		</style>
		<script type="text/javascript">
		jQuery(document).ready(function() {
			jQuery.ajax({
				type:"GET",
				url:"<%=contextPath %>/springMVC/gd/getGDDescriptionById?gd_description_id=<%=gd_description_id%>",
				success:function(rtData){
				$('#show_gd_code').html(rtData.gd_code);
				$('#show_gd_name').html(rtData.gd_name);
				$('#show_description_time').html(rtData.description_time);
				$('#show_description_person_name').html(rtData.description_person_name);
				$('#show_content').html(rtData.content);
				}
			});
		});
		function startPrint(obj){
		$(obj).hide();
		window.print();
	}
		</script>
	</head>
	<body >
		<form id="gdForm" method="post">
			<table  style="border-collapse: collapse;width:100%" border="1px" bordercolor="#0eb83a" >
			<tr>
					<td align="right" class="td1" nowrap>工单编号：</td>
					<td class="td2" nowrap>
						 <span id="show_gd_code"></span>
					</td>
					<td align="right" class="td1" nowrap>工单名称：</td>
					<td class="td2" nowrap>
						<span id="show_gd_name"></span>
					</td>
				</tr>
				<tr>
					 <td align="right" nowrap class="td1">
						交底时间：
					</td>
					<td class="td2" nowrap >
						<span id="show_description_time"></span>
					</td>
					<td align="right" nowrap class="td1">
						交底方：
					</td>
					<td class="td2" nowrap coslpan="2">
						<span id="show_description_person_name"></span>
					</td>
				</tr>
				<tr>
					<td align="right"  nowrap class="td1">
						交底内容：
					</td>
					<td class="td2"  colspan="5">
						<span id="show_content"></span>		
			     	</td>
				</tr>
				<tr>
					<td align="right"  nowrap class="td1">
						被交方确认：
					</td>
					<td class="td2"  colspan="5">
						通过以上内容（技术、质量、安全等）的交底，我已经清楚地了解和掌握了本工程施工的各项要求。  
     					被交方（接受交底人签字）：
			     	</td>
				</tr>
	   		   	 <tr>
					<td align="right" class="td1" nowrap></td>
					<td class="td2" nowrap colspan='3'>
						<div align="left">
							<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-print',plain:false" onclick="startPrint(this);">确认打印</a>
						</div>
					</td>
	   		   </tr>
			</table>
		</form>
	</body>
</html>


